import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useBecomeCreatorDataStore = defineStore('becomeCreatorData', () => {
  const identityPhoto = ref(null)
  const facePhoto = ref(null)
  const photoType = ref(null)

  const profile = ref({
    name: '',
    email: '',
    birth: {
      year: '',
      month: '',
      day: '',
    },
    publishDate: {
      year: '',
      month: '',
      day: '',
    },
    socialLinks: {
      instagram: '',
      twitter: '',
      other: '',
    },
    country: '',
    identityType: '',
    certificateFront: '',
    certificateBack: '',
  })

  return { identityPhoto, facePhoto, photoType, profile }
})
